package com.wenhua.service;

import com.wenhua.pojo.Dormitory;
import com.wenhua.pojo.DormitoryBuilding;

import java.util.List;

public interface DormitoryService {
    /* 查询宿舍楼 */
    List<DormitoryBuilding> selectDormitoryBuilding(Integer currentPage, Integer pageSize, String selectString, String sort);

    /* 查询宿舍楼数量 */
    Integer selectDormitoryBuildingCount(String selectString);

    /* 查询宿舍 */
    List<Dormitory> selectDormitory(Integer currentPage, Integer pageSize, String selectString, String sort);

    /* 查询宿舍数量 */
    Integer selectDormitoryCount(String selectString);

    /* 查询所有宿舍楼 */
    List<DormitoryBuilding> selectDormitoryBuildingAll();

    /* 添加宿舍 */
    Integer insertDormitory(Dormitory dormitory);

    /* 添加宿舍楼 */
    Integer insertDormitoryBuilding(DormitoryBuilding dormitoryBuilding);

    /* 根据宿舍楼id查询宿舍 */
    List<Dormitory> selectDormitoryByBuildingId(Integer buildingId);

    /* 更新宿舍楼 */
    Integer updateDormitory(Dormitory dormitory);

    /* 更新宿舍楼 */
    Integer updateDormitoryBuilding(DormitoryBuilding dormitoryBuilding);

    /* 删除宿舍 */
    Integer deleteDormitory(Dormitory dormitory);

    /* 删除宿舍楼 */
    Integer deleteDormitoryBuilding(DormitoryBuilding dormitoryBuilding);
}
